//
//  ViewController.m
//  05-引导页
//
//  Created by 韩旭 on 16/7/20.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "ViewController.h"
#import "AppDelegate.h"
#define COLORAUTO [UIColor colorWithRed:(arc4random()%256/255.0) green:(arc4random()%256/255.0) blue:(arc4random()%256/255.0) alpha:1.0]
#define kWidth [UIScreen mainScreen].bounds.size.width
#define kHeight [UIScreen mainScreen].bounds.size.height
#import "Hx_ScrollVIew.h"
@interface ViewController ()<UIScrollViewDelegate>

@end

@implementation ViewController
- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = COLORAUTO;
    Hx_ScrollVIew *scrollView = [[Hx_ScrollVIew alloc] initWithFrame:CGRectMake(0, 0, kWidth, kHeight)];
    NSArray *arr =
    [NSArray arrayWithObjects:@"1.jpg", @"2.jpg", @"3.jpg", @"4.jpg", @"5.jpg",@"6.jpg", nil];
   [scrollView packWithScrollViewFrame:CGRectMake(0, 0, kWidth, kHeight) arrDataSource:arr smallScrollViewframe:CGRectZero zoomMin:0.2 zoomMax:2 pageFrame:CGRectMake(kWidth * 0.3, kHeight * 0.85, kWidth * 0.4, kHeight * 0.1) pagetitinColor:[UIColor cyanColor] currPageColor:[UIColor yellowColor]];
    [self.view addSubview:scrollView];
}
@end
